import request from '@/utils/request'

// 查看自动发现资产
export function listDiscovery(query) {
  return request({
    url: '/admin/data/discovery/',
    method: 'get',
    params: query
  })
}

// 添加自动发现资产
export function addDiscovery(data) {
  return request({
    url: '/admin/data/discovery/',
    method: 'post',
    data: data
  })
}

// 修改自动发现资产
export function updateDiscovery(data) {
    return request({
        url: '/admin/data/discovery/',
        method: 'put',
        data: data
      })
}


// 删除自动发现资产
export function delDiscovery(query) {
  return request({
    url: '/admin/data/discovery/',
    method: 'delete',
    params: query
  })
}


//资产扫描
export function listScan(query) {
  return request({
    url: '/admin/data/scan/',
    method: 'get',
    params: query
  })
}